package com.reservation.dto.user.booking;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;
@Data
@ApiModel("会议室筛选条件数据传输对象")
public class RoomFilterDTO {

    @NotBlank(message = "日期不能为空")
    @ApiModelProperty(value = "日期", required = true, example = "2025-06-15")
    private String date;

    @NotBlank(message = "开始时间不能为空")
    @ApiModelProperty(value = "开始时间", required = true, example = "09-00")
    private String startTime;

    @NotBlank(message = "结束时间不能为空")
    @ApiModelProperty(value = "结束时间", required = true, example = "12-00")
    private String endTime;

    @NotNull(message = "参会人数不能为空")
    @Min(value = 1, message = "参会人数必须大于0")
    @ApiModelProperty(value = "参会人数", required = true, example = "10")
    private Integer number;

    @ApiModelProperty(value = "使用的设备", required = true, notes = "可以为空,如果为空时即为全选", example = "[\"投影仪\", \"音响系统\"]")
    private List<String> equipment;
}